<HTML>
<HEAD>
<TITLE>javascript_to_flash</TITLE>
</HEAD>
<SCRIPT LANGUAGE=JavaScript>
<!--
function doPassVar(strTmp){
	window.document.myFlash.SetVariable("strUrl", strTmp);
}
//-->
</SCRIPT> 
<BODY onLoad="doPassVar()">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 width=623 height=477 id="myFlash">
    <param name=movie value="pic_show.swf">
    <param name=quality value=high>
    
    <embed src="pic_show.swf" quality=high width=623 height=477 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" name="myFlash" swLiveConnect="true">    </embed> 
  </object>
<br>
<br>
<br>
<input type="button" name="Button" value="test 1" onClick="doPassVar('test1.jpg')">
  <input type="button" name="Button2" value="test 2" onClick="doPassVar('test2.jpg')">
  <input type="button" name="Button3" value="test 3" onClick="doPassVar('test3.jpg')">

</BODY>
</HTML>
